const http = uni.$u.http

// 注册
export const logon = (params) => http.post('/auth/logon', params, {custom: {noauth: true}})

// 登录
export const login = (params) => http.post('/auth/login', params, {custom: {noauth: true, successToast: false}})

// 修改资料
export const updateInfo = (params) => http.post('/user/updateinfo', params, {custom: {successToast: false}})

// 修改密码
export const updatePassword = (params) => http.post('/user/updatepassword', params)

// 修改头像
export const updateAvatar = (params) => http.post('/user/updateavatar', params, {custom: {successToast: false}})
